<?php
namespace app\api\controller;

use app\admin\library\Property as PropertyLib;
use app\admin\model\HouseProperty as PropertyModel;

class Property extends Common
{
    public function query()
    {
        $loginUser = $this->auth->getLoginUser();
        $house_property_id = $this->request->param('house_property_id/d', PropertyLib::getProperty($loginUser['id']));
        $properties = PropertyModel::where('admin_user_id', $loginUser['id'])->all();
        return $this->returnWechat($properties, 0, $house_property_id);
    }
}
